package cn.qicaiwang.open.app.dto;

import lombok.Data;
import lombok.ToString;

import java.util.List;

@ToString
@Data
public class PageDTO<T> {

    //总条数
    private long total = 0;

    //分页信息
    private List<T> rows;

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }

    public void addRows(List<T> rows) {
        this.rows.addAll(rows);
    }

}
